package com.zsc.shixun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsc.shixun.entity.Message;
import com.zsc.shixun.model.message.MessageVo;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2021/4/16
 */
public interface IMessageService extends IService<Message> {
   List<MessageVo> getMessageListByUserId(Long userId);
   void updateActive(Long id,Boolean active);
   void updateAllActive(Long userId,Boolean active);
   void updateAllDelete(Long userId,Boolean delete);
   MessageVo insertMessage(Long userId, Long sendId, String message);

  void updateDeleteById(Long id);
}
